package com.ecloud.aiassistantbackground.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户推广表
 * </p>
 *
 * @author Squbirreland
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("assistant_user_generalize")
@ApiModel(value = "UserGeneralize对象", description = "用户推广表")
public class UserGeneralize implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户推广id")
    @TableId(value = "user_generalize_id", type = IdType.AUTO)
    private Integer userGeneralizeId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "被推广的id")
    private Integer userIdInvited;

    @ApiModelProperty(value = "奖励劵id")
    private Integer couponId;

    @ApiModelProperty(value = "接受推广的时间")
    private LocalDateTime userGeneralizeTime;

    @ApiModelProperty(value = "备用字段1")
    private String userGeneralizeReserve1;

    @ApiModelProperty(value = "备用字段2")
    private String userGeneralizeReserve2;

}
